package com.hkbigdata.sybx.controller;

import com.hkbigdata.sybx.bean.InsurancePolicy;
import com.hkbigdata.sybx.service.InsurancePolicyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author liuanbo
 * @creat 2025-06-03-16:16
 * @see 2194550857@qq.com
 */
@RestController
@RequestMapping("/api")
public class InsurancePolicyController {
    @Autowired
    private InsurancePolicyService insurancePolicyService;
    @GetMapping("/insurancePolicy")
    public List<InsurancePolicy> select(){
        return insurancePolicyService.InsurancePolicySelect();
    }
}
